<select id="<?php echo $this->fieldId;  ?>" name="<?=$this->fieldName;?>[]" multiple="multiple" class="input inp_select" size="3">
	<?
	while (list ($k, $v) = each($this->params['values']))
	{
		if (is_array($v))
		{
			?><optgroup label="<?php echo Mozg_Lang::_($k); ?>"><?php
			foreach ($v as $kk => $vv)
			{
				?><option value="<?=htmlspecialchars($kk);?>" <?=(in_array($kk, $this->data) ? ' selected' : '');?>><?=Mozg_Lang::_($vv);?></option><?php
			}
			?></optgroup><?php
		}
		else
		{
	    	?><option value="<?=htmlspecialchars($k);?>"<?=(in_array($k, $this->data) ? ' selected' : '');?>><?=$v;?></option><?
		}
	}
	?>
</select>